home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / recent / mcf4amrc.lha / MCF4AmIRC / Rexx / MCF_AU.AMIRX < prev    next >
Text File  |  1996-09-17  |  1KB  |  10 lines

  1. /* MCF_AU.AMIRX
  2. // $VER: MCF_AU.AMIRX 4.1 (29.07.96)
  3. \\ Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
  4. // Please mail any bug reports/comments to the above address with a subject
  5. \\ header of MCF.AMIRX.
  6. //
  7. \\ ** What to do with this file
  8. // Put this script in REXX:        It will be used by MCF.AMIRX.
  9. */
  10. ;parse arg MCFenv junk User Host Auth Mchans;address value(MCFenv);UUser=upper(User);UHost=upper(Host);fname="MCF:MCF.Ops";call open("Input",fname,'R');NLine="";cnt1=0;xx=readln("Input");do until eof("Input");uu=upper(xx);parse value uu with FAuth FUser FHost junk;if FUser=UUser&FHost=UHost then;do;NLine=Auth User Host;xx=readln("Input");iterate;end;cnt1=cnt1+1;OLine.cnt1=xx;xx=readln("Input");end;call close("Input");if NLine="" then;if upper(User) ~="PRIVCH" then;NLine=Auth User Host||Mchans;else NLine=User Host;call open("Output",fname,'W');do cnt2=1 by 1 until cnt2=cnt1;if NLine<OLine.cnt2 then;do;if NLine ~=999 then;call writeln("Output",NLine);NLine=999;end;call writeln("Output",OLine.cnt2);end cnt2;if NLine ~=999 then;call writeln("Output",NLine);call close("Output");options results;getmynick;MyNick=RESULT;"RAW PRIVMSG "MyNick" :%RU";exit